l = [1, 2, 3, 4, 5]
sum = 0

def add_all(l):
  n = len(l)
  if n == 0:
    return 0
  else:
    return add_all(l[1:]) + l[0]

if __name__ == '__main__':
  print(add_all(l))
